'use strict';
module.exports = (sequelize, DataTypes) => {
  const informat = sequelize.define('informats', {
    amount: {
      type: DataTypes.INTEGER
    },
    total: {
      allowNull: false,
      type: DataTypes.INTEGER,
      defaultValue:0
    },
    carAmount: {
      allowNull: false,
      type: DataTypes.INTEGER,
      defaultValue: 0
    },
    leaseAmount: {
      allowNull: false,
      type: DataTypes.INTEGER,
      defaultValue: 0
    },
    createdAt: {
      allowNull: false,
      type: DataTypes.DATE
    },
    updatedAt: {
      allowNull: false,
      type: DataTypes.DATE
    }
  }, {
    tableName: 'informats',
    charset: 'utf8mb4',
    collate: 'utf8mb4_bin'
  });
  informat.associate = function(models) {
    // associations can be defined here
  };
  return informat;
};